package com.erp.gather.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 自动化公共产品临时业务对象 erp_auto_collect_product_temporary
 *
 * @author erp
 * @date 2024-01-10
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpAutoCollectProductTemporaryBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 公共库id
     */
    @NotNull(message = "公共库id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long collectProductId;

    /**
     * 商品价格
     */
    @NotBlank(message = "商品价格不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productPrice;

    /**
     * 品牌id
     */
    @NotNull(message = "品牌id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long brandId;

    /**
     * 类目id
     */
    @NotNull(message = "类目id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long categoryId;

    /**
     * 类目序列
     */
    @NotNull(message = "类目序列不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryAncestors;

    /**
     * 模版id
     */
    @NotNull(message = "模版id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long templateId;

    /**
     * 商品状态
     */
    @NotNull(message = "商品状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer productStatus;

    /**
     * 标签
     */
    @NotBlank(message = "标签不能为空", groups = { AddGroup.class, EditGroup.class })
    private String classifyLabel;


}
